package com.yzk.train.member.response;

import com.alibaba.fastjson2.JSONWriter;
import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
public class TicketQueryResp {

    // id
    @JSONField(serializeFeatures = JSONWriter.Feature.BrowserCompatible)
    private Long id;
    // 会员id
    @JSONField(serializeFeatures = JSONWriter.Feature.BrowserCompatible)
    private Long memberId;
    // 乘客id
    @JSONField(serializeFeatures = JSONWriter.Feature.BrowserCompatible)
    private Long passengerId;
    // 乘客姓名
    private String passengerName;
    // 日期
    @JSONField(format = "yyyy-MM-dd")
    private Date trainDate;
    // 车次编号
    private String trainCode;
    // 箱序
    private Integer carriageIndex;
    // 排号|01, 02
    private String seatRow;
    // 列号|枚举[SeatColEnum]
    private String seatCol;
    // 出发站
    private String startStation;
    // 出发时间
    @JSONField(format = "HH:mm")
    private Date startTime;
    // 到达站
    private String endStation;
    // 到站时间
    @JSONField(format = "HH:mm")
    private Date endTime;
    // 座位类型|枚举[SeatTypeEnum]
    private String seatType;

}
